let fs = require("fs");

const getFile = function (path) {
    return new Promise(function (resolve, reject) {
        console.log(path);
        fs.readFile(path, function (err, res) {
            if (err) {
                reject(err)
            }
            resolve(res.toString())
        })
    })
}

module.exports = {
    getFile
}